export FABRIC_LOGGING_SPEC=INFO
export CORE_PEER_ID=cli
export CORE_PEER_ADDRESS=peer0.org1.example.com:7051
export CORE_PEER_LOCALMSPID=Org1MSP
export CORE_PEER_TLS_ENABLED=true
export CORE_PEER_TLS_CERT_FILE=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
export CORE_PEER_TLS_KEY_FILE=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
export CORE_PEER_TLS_ROOTCERT_FILE=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
export CORE_PEER_MSPCONFIGPATH=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
export FABRIC_CFG_PATH=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/fabric

export ORDERER_CA=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

export OrgA_CA=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
export OrgB_CA=$GOPATH/src/gitee.com/kobeyyf/nothing/fabric-sdk/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem

./peer chaincode invoke -C mychannel -n storage -c '{"Args":["PutState","abc","newabc"]}'


./peer chaincode invoke  -C mychannel -n storage -o orderer.example.com:7050 --tls true --cafile  $ORDERER_CA  -c '{"Args":["PutState","abc","32"]}' --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles  $OrgA_CA 
--peerAddresses peer0.org2.example.com:9051 --tlsRootCertFiles  $OrgB_CA
